<template>
  <div v-if="btnList.length>0">
    <slot :data="{btnList,doSomething}"></slot>
    <approver-list :visible.sync="approverInfo.visible" v-if="approverInfo.visible" @callback="approverInfo.callback" :data-list="approverInfo.dataList"  :showCheckbox="approverInfo.showCheckbox"></approver-list>
    <component :is="eventDialogInfo.component" v-if="eventDialogInfo.visible" @callback="eventDialogInfo.callback" :visible.sync="eventDialogInfo.visible"></component>
    <suggestion-common-dialog  v-if="suggestionInfo.visible" :visible.sync="suggestionInfo.visible" v-model="suggestionInfo.msg" @callback="suggestionInfo.callback" :btn="currBtn"></suggestion-common-dialog>
  </div>
</template>
<script>
  import ButtonHandle from "@/mixins/ButtonHandle"
  export default {
    name:"HandleComponents",
    mixins:[ButtonHandle],
  }
</script>
